Skip to content

Conversation

@runningcode
Copy link
Contributor

Summary

Adds support for passing build timestamps when uploading Android artifacts via the build upload command. This allows the sentry-android-gradle-plugin to capture the build time and send it to Sentry.

Changes

  • Add --date-built CLI argument to build upload command
  • Add date_built field to ChunkedBuildRequest struct
  • Pass date_built through upload_file function to API
  • Update help text with ISO 8601 format example (e.g., 2025-11-26T10:30:00Z)
  • Update test snapshots

Usage

sentry-cli build upload --date-built '2025-11-26T10:30:00Z' my-app.apk

Related

@linear
Copy link

linear bot commented Nov 26, 2025

@github-actions
Copy link
Contributor

github-actions bot commented Nov 26, 2025

Fails
🚫 Please consider adding a changelog entry for the next release.
Messages
📖 Do not forget to update Sentry-docs with your feature once the pull request gets approved.

Instructions and example for changelog

Please add an entry to CHANGELOG.md to the "Unreleased" section. Make sure the entry includes this PR's number.

Example:

## Unreleased

### Features

- Add --date-built parameter for artifact uploads (EME-631) ([#2992](https://github.com/getsentry/sentry-cli/pull/2992))

If none of the above apply, you can opt out of this check by adding #skip-changelog to the PR description or adding a skip-changelog label.

Generated by 🚫 dangerJS against 368a57f

Add support for passing build timestamps when uploading Android artifacts
via the build upload command. This allows the sentry-android-gradle-plugin
to capture the build time and send it to Sentry.

Changes:
- Add --date-built CLI argument to build upload command
- Add date_built field to ChunkedBuildRequest struct
- Pass date_built through upload_file function to API
- Update help text with ISO 8601 format example
- Update test snapshots
@runningcode runningcode force-pushed the no/eme-631-android-date-built-sentry-cli branch from 7142e31 to 368a57f Compare November 27, 2025 15:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants